package exce1.exce01;

public class Demo10 {
    public static void main(String[] args) {
        String s=new String();//空参构造
        System.out.println(s);
        String st=new String("abc");//有参构造
        System.out.println(st);
        char[] ch={'a','b','c'};
        String st1=new String(ch);//字符构造
        System.out.println(st1);
        byte[] by={97,98,99};
        String st2=new String(by);
        System.out.println(st2);
        String st3="abc";
        System.out.println(st3);

    }
}
